package com.yunshang.ysmall.service;

import java.util.List;
import java.util.Map;

import com.yunshang.ysmall.model.ProductImgList;
import com.yunshang.ysmall.model.ProductInfo;
import com.yunshang.ysmall.model.ProductTypeInfo;

public interface ProductService {
	boolean addProduct(ProductInfo productInfo);
	List<ProductInfo> getProductListByMap(Map params);
	boolean updateProduct(ProductInfo productInfo);
	ProductInfo getProductById(String productId);
	boolean deleteProduct(String productId);
	
	boolean saveProductImg(ProductImgList productImgList);
	List<ProductImgList> getImgListByProId(String productId);
	
	boolean addProductType(String typeName);
	boolean delProductType(Integer typeId);
	List<ProductTypeInfo> getTypeList();
	
}
